package com.xinqi.modules.stats.score.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.stats.score.domain.CourseTotalScoreOfflineStudentEntity;
import com.xinqi.modules.stats.score.dto.req.CourseContentTotalScoreClassDTO;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreOfflineStudentQueryDTO;
import com.xinqi.modules.stats.score.dto.rsp.CourseTotalScoreOfflineStudentResultDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 线下成绩学生表数据层
 *
 * @author: system
 * @date: 2023/03/26
 */
@Mapper
public interface CourseTotalScoreOfflineStudentMapper extends SuperMapper<CourseTotalScoreOfflineStudentEntity> {

    List<CourseTotalScoreOfflineStudentResultDTO> studentOfflineScoreList(CourseTotalScoreOfflineStudentQueryDTO query);

    IPage<CourseTotalScoreOfflineStudentResultDTO> studentOfflineScorePage(Page page, CourseTotalScoreOfflineStudentQueryDTO query);

    CourseTotalScoreOfflineStudentResultDTO studentOfflineScore(CourseTotalScoreOfflineStudentQueryDTO query);

    /*查询未读数量*/
    Long studentUnreadOfflineScore(CourseContentTotalScoreClassDTO query);

    /*设置为已读*/
    Long studentReadOfflineScore(CourseContentTotalScoreClassDTO query);

}
